#ifndef _SENSE_JITTER_REJECTION_H
#define _SENSE_JITTER_REJECTION_H

#define	ON	0
#define OFF	1

#define	SNS_NUM_MAX_SENSE	2	
#define	SNS_NUM_MAX_CHATARING	2	

#define	SNS_NUM_BSENS			0	
#define	SNS_NUM_ASENS			1	

typedef enum {
	SNS_STS_ON,
	SNS_STS_OFF,
	SNS_STS_UNKNOWN			
} ESNSStatus;

typedef struct {
	unsigned short	chataTimer;
	ESNSStatus	eStatusBuf;
} SSNSChataInfo;

#define	SNS_TIME_NULL			0

#define	SNS_TIME_ONCHATA_BSENS		500	
#define	SNS_TIME_OFFCHATA_BSENS		8	

#define	SNS_TIME_ONCHATA_ASENS		500	
#define	SNS_TIME_OFFCHATA_ASENS		28

#endif

void SNS_Init(void);
void SNS_execChataRejection(unsigned char port,unsigned int intxms);
